import { options } from "../enums";
import { $t } from "@/plugins/i18n";

// 最简代码，也就是这些字段必须有
export default {
  path: "/options",
  // redirect: "/options/index",
  meta: {
    icon: "ri:settings-5-fill",
    title: "基础设置",
    rank: options,
    showLink: true
  },
  children: [
    {
      path: "/options/account",
      name: "accountManager",
      component: () => import("@/views/options/account/index.vue"),
      meta: {
        title: "账户管理",
        roles: ["admin"]
      }
    },
    {
      path: "/options/client",
      name: "clientManager",
      component: () => import("@/views/options/client/index.vue"),
      meta: {
        title: "客户端管理"
      }
    },
    {
      path: "/options/cloud",
      name: "cloudManager",
      component: () => import("@/views/options/cloud/index.vue"),
      meta: {
        title: "服务云管理"
      }
    },
    {
      path: "/options/envSettings",
      name: "envSettings",
      component: () => import("@/views/options/about/index.vue"),
      meta: {
        title: "环境配置"
      }
    }
  ]
};
